<template>
  <el-tag :type="status === 1 ? 'success' : 'info'">
    {{ status === 1 ? '运行中' : '已暂停' }}
  </el-tag>
</template>

<script>
export default {
  name: 'JobStatusTag',
  props: {
    status: {
      type: Number,
      required: true,
      validator: value => {
        return [0, 1].includes(value)
      }
    }
  }
}
</script>
